from django.db import models
from simcat.models import Reference, CharacterizableType

class Collection(models.Model):
    name = models.SlugField()
    description = models.TextField(null=True, blank=True)
    reference = models.ManyToManyField(Reference, null=True)
    targets = models.ManyToManyField(CharacterizableType, 
                                     null=True)
    parent_collection = models.ForeignKey('self', null=True)

    class Meta:
	app_label = "simcat"

class Simulation(models.Model):
    name = models.SlugField()
    description = models.TextField(null=True, blank=True)
    reference = models.ManyToManyField(Reference, null=True)
    targets = models.ManyToManyField(CharacterizableType, 
                                     null=True)
    parent_collection = models.ForeignKey(Collection, null=True)

    class Meta:
	app_label = "simcat"
